
const { defineStore } = Pinia

export default defineStore('person', () => {
  const person = reactive({
    name: '我是状态',
    age: 20
  })

  const ageAdd = () => {
    person.age += 1
  }

  return {
    person,
    ageAdd
  }
})